package com.nervenets.web.controller.user;

import com.nervenets.Global;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class MobileRegisterParams implements Serializable {
    @ApiModelProperty(value = "手机号", required = true)
    @Pattern(regexp = Global.RegExp.MOBILE, message = "请输入正确的手机号码")
    private String mobile;
    @ApiModelProperty(value = "密码", required = true)
    @NotNull(message = "密码不能为空")
    private String password;
    @ApiModelProperty(value = "2次密码", required = true)
    @NotNull(message = "2次密码不能为空")
    private String password2;
    @ApiModelProperty(value = "手机验证码", required = true)
    @NotNull(message = "手机验证码不能为空")
    private String validationCode;

}
